<?php
// +----------------------------------------------------------------------
// |ZBPHP[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2019 http://www.benbenwangluo.com
// +----------------------------------------------------------------------
// | Author 似水星辰 [ 2630481389@qq.com ]
// +----------------------------------------------------------------------
// | 中犇软件 技术六部 出品
// +----------------------------------------------------------------------

namespace app\customer\controller;

/**
 * 客服登录
 * @package app\user\controller
 */
class Index extends \think\Controller
{
    
    protected  $user_id = null;
    protected function initialize()
    {          
        
    }
    /**
     * 登录界面
     * @author 晓风<215628355@qq.com>
     * @return mixed
     */
    public function index()
    {

        $this->user_id = session("service_user_id");
        if(!$this->user_id ){  
            $this->redirect(url("/customer/login/index"));
        }else{
            $this->redirect(url("/customer/message/index"));
        }
    }

}